<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>消息通知</title>
    <!--<link rel="stylesheet" type="text/css" href="css/base.min.css" />
    <link rel="stylesheet" type="text/css" href="css/common.css" />-->
    <link rel="stylesheet" type="text/css" href="{:_SKIN}/user/layui/css/layui.css" media="all" />
    <link rel="stylesheet" type="text/css" href="{:_SKIN}/user/css/baojia.css" />
    <script src="{:_SKIN}/user/layui/lay/dest/layui.all.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
    table,.layui-table th{ text-align: center; } .layui-table{ margin-top: -10px; } .layui-table td{ font-size: 12px; } .layui-tab-title a{ text-decoration: none; }

       /*.pages #Pagination { margin:-2px auto; } .pages .searchPage .page-sum { padding: 3px 20px; } .pages .searchPage .page-go { padding: 3px 20px; } .pages .searchPage .page-btn { padding: 6px 5px; }
      .Pagination a:hover,.current{color: #000000; }
  .Pagination{height: auto;_height: 45px; line-height: 20px; color:ffffff; clear:both;width:610px; margin: 0 auto;}
  .Pagination a,.Pagination span{ font-size: 14px;text-decoration: none;display: block;float: left;color: #565656;border: 1px solid #ccc;height: 34px;line-height: 34px;margin: 0 2px;width: 34px;text-align: center; }

  .Pagination .active span { background-color: #7baa18; color:#fff; }*/
    

    </style>
   
    </head>
  
  <body>
    <div class="content">
      <div class="titlebar">
        <div class="titlebar-name">消息通知</div></div>
      <br />
      <br />
      <br />
      <br />
      <div class="layui-tab">
        <ul class="layui-tab-title">
          <li class="layui-this">全部消息</li>
        <!--   <li>系统消息</li>
          <li>会员服务</li>
          <li>活动通知</li>
          <li>相关消息</li> --></ul>
        <div class="layui-tab-content">
          <div class="layui-tab-item layui-show">
            <table class="layui-table">
              <colgroup>
                <col width="150">
                  <col width="200">
                    <col></colgroup>
              <thead>
                <tr>
                  <th>用户</th>
                  <th>标题</th>
                  <th>时间</th>
                  <th>内容</th>
                 <!--  <th>
                    <select name="status" id="status" onchange="" style="font-weight: initial;">
                      <option value="">信息类型</option>
                      <option value="1">系统消息</option>
                      <option value="2">会员服务</option>
                      <option value="3">活动通知</option>
                      <option value="4">交易相关</option></select>
                  </th> -->
                  <th>操作</th></tr>
              </thead>
              <tbody>
               <!--  <tr>
                  <td>成功提交订单十月稻田旗舰店</td>
                  <td>2016-11-29</td>
                  <td>您已成功下单，订单编号：SH1708010519450007，金额：275.50</td>
                  <td>交易相关</td>
                  <td>
                    <a href="" style="color: red;">删除</a></td>
                </tr> -->
                {volist name="info" id="vo"}
                 <tr>
                 
                  <td>{$vo.uid}</td>
                  <td>{$vo.title}</td>
                  <td>{$vo.time}</td>
                  <td>{$vo.info}</td>
                <!--   <td></td> -->
                 <!--  <td></td>
                  -->
                  <td>
                    <a class="s_del"  style="color: red;" data-id="{$vo.id}">删除</a></td>
                   
                </tr>
                {/volist}
              </tbody> 
            </table>
          </div>
      

      <script>//注意：选项卡 依赖 element 模块，否则无法进行功能性操作
        layui.use('element',
        function() {
          var element = layui.element();

          //…
        });</script>
    </div>


    {:jq()}
    {:layui()}
    <script type="text/javascript">
    $('.s_del').click(function(){

      var id = $(this).data('id');

      var r =confirm('确定删除？删除后无法恢复');

      if (r==true){
        $.post("{:url('user/buyers/delinfo')}",{id:id},function(res){

              if(res.code==200){

                alert('删除成功');

                window.location.reload();

              }else{

                  alert(res.msg);
            }

        });
        
      }

    });

   


    

   

    </script>


  </body>

</html>